package com.blog.user.pojo;

import com.blog.common.pojo.BasePoJo;

import java.util.Objects;

/**
 * @author dc
 * @Classname Article
 * @Date 2020/8/10 21:57
 */
public class Article extends BasePoJo {
    private static final long serialVersionUID = 6666745084683874377L;
    private String articleTitle;
    private String articleContent;
    private String consumerId;
    private String articleType;
    private Integer articleLike;
    private Integer articleDislike;

    @Override
    public boolean equals(Object o) {
        if (this == o){ return true;}
        if (!(o instanceof Article)) {return false;}
        Article article = (Article) o;
        return Objects.equals(articleTitle, article.articleTitle) &&
                Objects.equals(articleContent, article.articleContent) &&
                Objects.equals(consumerId, article.consumerId) &&
                Objects.equals(articleType, article.articleType) &&
                Objects.equals(articleLike, article.articleLike) &&
                Objects.equals(articleDislike, article.articleDislike);
    }

    @Override
    public int hashCode() {
        return Objects.hash(articleTitle, articleContent, consumerId, articleType, articleLike, articleDislike);
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public String getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(String consumerId) {
        this.consumerId = consumerId;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public Integer getArticleLike() {
        return articleLike;
    }

    public void setArticleLike(Integer articleLike) {
        this.articleLike = articleLike;
    }

    public Integer getArticleDislike() {
        return articleDislike;
    }

    public void setArticleDislike(Integer articleDislike) {
        this.articleDislike = articleDislike;
    }

    public Article() {
    }

    public Article(String articleTitle, String articleContent, String consumerId, String articleType, Integer articleLike, Integer articleDislike) {
        this.articleTitle = articleTitle;
        this.articleContent = articleContent;
        this.consumerId = consumerId;
        this.articleType = articleType;
        this.articleLike = articleLike;
        this.articleDislike = articleDislike;
    }
}
